function page(props) {
    console.log(props.a);
    return(
        <div>
            {props.a.map(ele => <li key={ele} >{ele}</li>)}
        </div>
    )
}

export async function getStaticPaths(context) {
    return{
        paths:[
            {params: { pageId:['aaa', 'bbb'] } },
            {params: { pageId:['aaa'] } },
            {params: { pageId:['bbb'] } }
        ],
        fallback:false
    }
}

export async function getStaticProps(context) {
    const {params} = context;
    const a = params.pageId
    return{
        props:{
            a
        }
    }
}
export default page